package com.gjs.cd.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gjs.cd.pojo.dto.CdDetailReq;
import com.gjs.cd.pojo.dto.StatusReq;
import com.gjs.cd.pojo.vo.CdDetailVo;
import com.gjs.cd.pojo.entity.CdDetail;
import com.gjs.common.enums.entity.StatusEnum;
import com.gjs.common.pojo.dto.request.PageQuery;

import java.util.List;

/**
 * @author zhongwenguang
 * @date 2022-3-16 9:27
 */
public interface ICdDetailService extends IService<CdDetail> {

    //获取分页列表数据
    IPage<CdDetailVo> getList(PageQuery pageQuery, CdDetailReq cdDetailReq);

    //光盘（品种）上下架操作，批量操作
    Boolean putOrOff(List<StatusReq> list);

    //光盘（品种）上下架操作，单个操作
    Boolean putOrOffOne(StatusReq statusReq);

    //获取详情
    CdDetail detail(Long id);

    Wrapper<CdDetail> buildWrapper(CdDetailReq req);
}
